﻿using System;
using System.Collections.Generic;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 页面数据
    /// </summary>
    public class ContentModel
    {
        /// <summary>
        /// 任务名称（旧的）
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 开始时间 1.立即执行 2.设置开始时间
        /// </summary>
        public string start { get; set; }
        /// <summary>
        /// 执行频率 1.只执行一次 2.简单重复执行 3.明细频率设置 4.表达式设置
        /// </summary>
        public string frequency { get; set; }
        /// <summary>
        /// 结束 1.无限制 2.设定结束时间
        /// </summary>
        public string end { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public string startTime { get; set; }
        /// <summary>
        /// 秒
        /// </summary>
        public string seconds { get; set; }
        /// <summary>
        /// 分
        /// </summary>
        public string minute { get; set; }
        /// <summary>
        /// 小时
        /// </summary>
        public string hours { get; set; }
        /// <summary>
        /// 天
        /// </summary>
        public string day { get; set; }
        /// <summary>
        /// 选择 1.月 2.周
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 月
        /// </summary>
        public string month { get; set; }
        /// <summary>
        /// 周
        /// </summary>
        public string week { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public string endTime { get; set; }
        /// <summary>
        /// 任务重启
        /// </summary>
        public Boolean restart { get; set; }
        /// <summary>
        /// 间隔时间
        /// </summary>
        public string restartFrequency { get; set; }
        /// <summary>
        /// 重启次数
        /// </summary>
        public string restartTime { get; set; }
        /// <summary>
        /// 频率明细
        /// </summary>
        public List<FrequencyModel> frequencyList { get; set; }
        /// <summary>
        /// 表达式设置
        /// </summary>
        public string cron { get; set; }

        /// <summary>
        /// 请求类型
        /// </summary>
        public string interfaceType { get; set; }
        /// <summary>
        /// 请求路径
        /// </summary>
        public string interfaceUrl { get; set; }
        /// <summary>
        /// 请求参数
        /// </summary>
        public List<KeyValuePair<string, string>> parameter { get; set; }
        /// <summary>
        /// 数据库
        /// </summary>
        public string database { get; set; }
        /// <summary>
        /// 数据库密码
        /// </summary>
        public string password { get; set; }
        /// <summary>
        /// 数据库账号
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 数据库url
        /// </summary>
        public string url { get; set; }

        /// <summary>
        /// 存储名称
        /// </summary>
        public string stored { get; set; }
        /// <summary>
        /// 存储参数
        /// </summary>
        public List<KeyValuePair<string, string>> storedParameter { get; set; }

    }
}
